package com.pureut.storage.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.pureut.storage.domain.PickingComplete;
import com.pureut.storage.dto.AndroidHandoverPdaDto;
import com.pureut.storage.dto.GetPdaDto;
import com.pureut.storage.dto.PickingCompleteDto;
import com.pureut.storage.dto.PickingCompleteInfoDto;
import com.pureut.storage.export.PickingCompleteExport;
import com.pureut.storage.vo.PickingCompleteVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 销售发货mapper
 * @author: CM
 * @date: 2022/12/27    14:54
 */
@Mapper
public interface PickingCompleteMapper extends BaseMapper<PickingComplete> {

    /**
     * 返工出库列表查询
     * @param pickingComPleteVo
     * @return
     */
    Page<PickingCompleteInfoDto> getpickingComPleteList(@Param("pickingComPleteVo") PickingCompleteVo pickingComPleteVo, @Param("page") Page<PickingCompleteInfoDto> page);

    /**
     * 返工出库查看
     * @param id
     * @return
     */
    PickingCompleteDto getpickingComPleteById(@Param("id") Long id);


    List<GetPdaDto> getpickingComPleteListPda(PickingCompleteVo pickingComPleteVo);

    /**
     * 返工出库交接列表
     * @param deptId
     * @return
     */
    List<AndroidHandoverPdaDto> getAndroidHandoverList(Long deptId);

    /**
     * 反攻出库交接查看详情
     * @param id
     * @return
     */
    AndroidHandoverPdaDto getAndroidHandoverView(Long id);

    /**
     * 返工出库导出
     * @param pickingComPleteVo
     * @return
     */
    List<PickingCompleteExport> getInfoExport(PickingCompleteVo pickingComPleteVo);

    /**
     * 返工出库Pda交接列表
     * @param deptId
     * @param page
     * @return
     */
    Page<AndroidHandoverPdaDto> getHandoverList(@Param("deptId") Long deptId,@Param("page") Page<AndroidHandoverPdaDto> page);
}
